import axios from '@/ajax/config'

/**
 * @param param
 * @returns {PromiseLike<T | never> | Promise<T | never> | *}
 */
// 列表
export function getLinkList(params: any) {
  return axios.get(`/scrm-api/sms/attract/list`, params)
}
// 列表
export function getFounderList(params?: any) {
  return axios.get('/scrm-api/sms/attract/user-list', params)
}
// 删除
export function delLink(data: any) {
  return axios.post('/scrm-api/sms/attract/del', data)
}
// 小程序查看
export function getApplet(params?: any) {
  return axios.get('/scrm-api/sms/applet/info', params)
}
// 小程序授权
export function modifyApplet(data?: any) {
  return axios.post('/scrm-api/sms/applet/auth', data)
}
// 创建链接
export function createLink(data?: any) {
  return axios.post('/scrm-api/sms/attract/create', data)
}
